﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:shmp_styles="clr-namespace:SharpMap.Styles;assembly=SharpMap"
  	xmlns:reflect="clr-namespace:System.Reflection;assembly=mscorlib"
    xmlns:local="clr-namespace:SharpMap.Presentation.Wpf">
    <Style TargetType="{x:Type local:StyleListItem}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type local:StyleListItem}">
                <StackPanel Name="ParentPanel"  Margin="13,0,0,0" Orientation="Horizontal"
                          >
        
                <TextBlock  Focusable="true" Margin="5,2,7,2" VerticalAlignment="Center" TextTrimming="CharacterEllipsis" 
                            Text="{Binding Path=Name}" >
                 </TextBlock>
                <ContentPresenter 
                    Name="PropertyValueContentPresenter" 
                     Margin="0,0,1,1" VerticalAlignment="Center" 
                    Content="{Binding}" 
                    ContentTemplateSelector="{Binding RelativeSource={RelativeSource Self}, 
                    Path=(local:StyleListItem.OwningPropertyContainer).EditorTemplateSelector}" 
                    />
                </StackPanel>
             </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
        
</ResourceDictionary>